package cn.edu.scau.cmi.duzefeng.compositeprog.model.consistent;

import java.util.List;

public class Person extends Member {

	private String name;

	public Person(String name) {
		this.name = name;
	}

	@Override
	public List<Member> getChildren() throws Exception {
		throw new Exception("无效操作");
	}

	@Override
	public void addChild(Member child) throws Exception {
		throw new Exception("无效操作");
	}

	@Override
	public void removeChild(Member child) throws Exception {
		throw new Exception("无效操作");
	}

	@Override
	public String getName() {
		return name;
	}

}
